Optimal. Leaf size=343 \[ \frac {2 \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) \left (4 a^2 C+18 a b B+9 A b^2+7 b^2 C\right )}{45 d}+\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (7 a^2 B+14 a A b+10 a b C+5 b^2 B\right )}{21 d}+\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)} \left (3 a^2 (5 A+3 C)+18 a b B+b^2 (9 A+7 C)\right )}{15 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (7 a^2 B+14 a A b+10 a b C+5 b^2 B\right )}{21 d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (3 a^2 (5 A+3 C)+18 a b B+b^2 (9 A+7 C)\right )}{15 d}+\frac {2 b (4 a C+9 b B) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 C \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2}{9 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.59, antiderivative size = 343, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 8, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {4096, 4076, 4047, 3768, 3771, 2641, 4046, 2639} \[ \frac {2 \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) \left (4 a^2 C+18 a b B+9 A b^2+7 b^2 C\right )}{45 d}+\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (7 a^2 B+14 a A b+10 a b C+5 b^2 B\right )}{21 d}+\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)} \left (3 a^2 (5 A+3 C)+18 a b B+b^2 (9 A+7 C)\right )}{15 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (7 a^2 B+14 a A b+10 a b C+5 b^2 B\right )}{21 d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (3 a^2 (5 A+3 C)+18 a b B+b^2 (9 A+7 C)\right )}{15 d}+\frac {2 b (4 a C+9 b B) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 C \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2}{9 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3768
Rule 3771
Rule 4046
Rule 4047
Rule 4076
Rule 4096
Rubi steps
\begin {align*} \int \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^2 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {2}{9} \int \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \left (\frac {3}{2} a (3 A+C)+\frac {1}{2} (9 A b+9 a B+7 b C) \sec (c+d x)+\frac {1}{2} (9 b B+4 a C) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 b (9 b B+4 a C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {4}{63} \int \sec ^{\frac {3}{2}}(c+d x) \left (\frac {21}{4} a^2 (3 A+C)+\frac {9}{4} \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sec (c+d x)+\frac {7}{4} \left (9 A b^2+18 a b B+4 a^2 C+7 b^2 C\right ) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 b (9 b B+4 a C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {4}{63} \int \sec ^{\frac {3}{2}}(c+d x) \left (\frac {21}{4} a^2 (3 A+C)+\frac {7}{4} \left (9 A b^2+18 a b B+4 a^2 C+7 b^2 C\right ) \sec ^2(c+d x)\right ) \, dx+\frac {1}{7} \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \int \sec ^{\frac {5}{2}}(c+d x) \, dx\\ &=\frac {2 \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 \left (9 A b^2+18 a b B+4 a^2 C+7 b^2 C\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b (9 b B+4 a C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {1}{21} \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{15} \left (18 a b B+3 a^2 (5 A+3 C)+b^2 (9 A+7 C)\right ) \int \sec ^{\frac {3}{2}}(c+d x) \, dx\\ &=\frac {2 \left (18 a b B+3 a^2 (5 A+3 C)+b^2 (9 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}+\frac {2 \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 \left (9 A b^2+18 a b B+4 a^2 C+7 b^2 C\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b (9 b B+4 a C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {1}{15} \left (-18 a b B-3 a^2 (5 A+3 C)-b^2 (9 A+7 C)\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{21} \left (\left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 \left (18 a b B+3 a^2 (5 A+3 C)+b^2 (9 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}+\frac {2 \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 \left (9 A b^2+18 a b B+4 a^2 C+7 b^2 C\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b (9 b B+4 a C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {1}{15} \left (\left (-18 a b B-3 a^2 (5 A+3 C)-b^2 (9 A+7 C)\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {2 \left (18 a b B+3 a^2 (5 A+3 C)+b^2 (9 A+7 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{15 d}+\frac {2 \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 \left (18 a b B+3 a^2 (5 A+3 C)+b^2 (9 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}+\frac {2 \left (14 a A b+7 a^2 B+5 b^2 B+10 a b C\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 \left (9 A b^2+18 a b B+4 a^2 C+7 b^2 C\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b (9 b B+4 a C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 C \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 6.79, size = 507, normalized size = 1.48 \[ \frac {(a+b \sec (c+d x))^2 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {4}{15} \sin (c+d x) \left (15 a^2 A+9 a^2 C+18 a b B+9 A b^2+7 b^2 C\right )+\frac {4}{45} \sec ^2(c+d x) \left (9 a^2 C \sin (c+d x)+18 a b B \sin (c+d x)+9 A b^2 \sin (c+d x)+7 b^2 C \sin (c+d x)\right )+\frac {4}{21} \sec (c+d x) \left (7 a^2 B \sin (c+d x)+14 a A b \sin (c+d x)+10 a b C \sin (c+d x)+5 b^2 B \sin (c+d x)\right )+\frac {4}{7} \sec ^3(c+d x) \left (2 a b C \sin (c+d x)+b^2 B \sin (c+d x)\right )+\frac {4}{9} b^2 C \tan (c+d x) \sec ^3(c+d x)\right )}{d \sec ^{\frac {7}{2}}(c+d x) (a \cos (c+d x)+b)^2 (A \cos (2 c+2 d x)+A+2 B \cos (c+d x)+2 C)}-\frac {2 \cos ^4(c+d x) (a+b \sec (c+d x))^2 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (-35 a^2 B-70 a A b-50 a b C-25 b^2 B\right )+\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (105 a^2 A+63 a^2 C+126 a b B+63 A b^2+49 b^2 C\right )}{\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}\right )}{105 d (a \cos (c+d x)+b)^2 (A \cos (2 c+2 d x)+A+2 B \cos (c+d x)+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.52, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C b^{2} \sec \left (d x + c\right )^{5} + {\left (2 \, C a b + B b^{2}\right )} \sec \left (d x + c\right )^{4} + A a^{2} \sec \left (d x + c\right ) + {\left (C a^{2} + 2 \, B a b + A b^{2}\right )} \sec \left (d x + c\right )^{3} + {\left (B a^{2} + 2 \, A a b\right )} \sec \left (d x + c\right )^{2}\right )} \sqrt {\sec \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{2} \sec \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 24.18, size = 1196, normalized size = 3.49 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^2\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________